/*
 * Client.h
 *
 *  Created on: 1 mar 2010
 *      Author: Lunkan
 */

#ifndef CLIENT_H_
#define CLIENT_H_

#include <iostream>
#include <string>
#include <sstream>
#include "SDL/SDL_net.h"

using namespace std;

class Client {
public:
	Client(string ip, int port);
	virtual ~Client();

protected:
	UDPsocket send_socket;
	IPaddress host;
	UDPpacket *send_packet;

	UDPsocket recv_socket;
	UDPpacket *recv_packet;
	void send(string mess);
	string receive();

	bool accepted;
};

#endif /* CLIENT_H_ */
